import { createApp } from 'vue'
import './assets/css/style.css'
import './assets/fonts/iconfont.css'
import App from './App.vue'
import router from './router'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { createPinia } from 'pinia'
 import './router/Permission';

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app=createApp(App);
app.use(pinia);
app.use(router)
app.use(ElementPlus, {
    locale: zhCn,
  });

  app.mount('#app')  
  
